package com.szh.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.szh.domain.RefundInfo;

public interface RefundInfoService extends IService<RefundInfo> {

    /**
     * 根据订单号创建退款单
     * @param orderNo 订单号
     * @param reason 退款原因
     * @return 退款单
     */
    RefundInfo createRefundByOrderNo(String orderNo, String reason);

    /**
     * 更新退款单，支付宝支付
     */
    void updateRefundForAliPay(String refundNo, String content, String refundStatus);

    /**
     * 更新退款单，微信支付
     * @param bodyAsString 响应体
     */
    void updateRefundForWxPay(String bodyAsString);

    /**
     * 找出申请退款超过minutes分钟并且未成功的退款单
     */
//    List<RefundInfo> getNoRefundOrderByDuration(int minutes);
}
